import request from '@/utils/request'

// 查询生产厂列表
export function listFactories(query) {
  return request({
    url: '/drug/factories/list',
    method: 'get',
    params: query
  })
}

// 查询生产厂详细
export function getFactories(facId) {
  return request({
    url: '/drug/factories/' + facId,
    method: 'get'
  })
}

// 新增生产厂
export function addFac(data) {
  return request({
    url: '/drug/factories/add',
    method: 'post',
    data: data
  })
}

// 修改生产厂
export function updateFactories(data) {
  return request({
    url: '/drug/factories/',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delFactories(facId) {
  return request({
    url: '/drug/factories/' + facId,
    method: 'delete'
  })
}

